DXL Attribute

Hi everyone,

I have an object that has object Heading, Object Text and a figure all in one object. I am trying to copy this object into a DXL attribute using:

void copy_Value_From_To(Object trg, Object src, string targAttName, string srcAttName){
                set(trg.targAttName,src.srcAttName)
                }
                copy_Value_From_To(obj,obj,"DXL Attribute","Object Text")

 


Only the object text and figure get copied, what can I do to have the object heading copied along with everything else in that object?

I'm not sure if richTextWithOle will do the work? don't really know how to use it :-( can someone give me some ideas of the best way to go about it. Any ideas will much be appreciated.

 


DXLUser - Tue Jan 22 09:54:42 EST 2013

Re: DXL Attribute
llandale - Tue Jan 22 14:18:18 EST 2013

I think you want both the Heading and the Text into a DXL-Attribute.

That "set" command won't work. Perhaps this scribbling:

Buffer buf = create()
buf += number(obj)    // Paragraph Number
buf += "\t"
buf += richText(obj."Object Heading")
buf += "\n"
buf += richTextWithOle(obj."Object Text")
obj.attrDXLName = richText(tempStringOf(buf))
delete(buf)


Yes, variable "attrDXLName" is the name of the target attribute, and is generally better than hard-coding it.

-Louie

Re: DXL Attribute
DXLUser - Wed Jan 23 09:45:38 EST 2013

llandale - Tue Jan 22 14:18:18 EST 2013

I think you want both the Heading and the Text into a DXL-Attribute.

That "set" command won't work. Perhaps this scribbling:

Buffer buf = create()
buf += number(obj)    // Paragraph Number
buf += "\t"
buf += richText(obj."Object Heading")
buf += "\n"
buf += richTextWithOle(obj."Object Text")
obj.attrDXLName = richText(tempStringOf(buf))
delete(buf)


Yes, variable "attrDXLName" is the name of the target attribute, and is generally better than hard-coding it.

-Louie

Thank you!